package com.atjinggu.jinggumail.product.vo;

import com.atjinggu.jinggumail.product.entity.SkuImagesEntity;
import com.atjinggu.jinggumail.product.entity.SkuInfoEntity;
import com.atjinggu.jinggumail.product.entity.SpuInfoDescEntity;
import lombok.Data;

import java.util.List;

/**
 * @author jingming
 * @Type SkuItemVo.java
 * @Desc
 * @date 2021/2/20 18:07
 */
@Data
public class SkuItemVo {
    //sku基本信息pms_sku_info
   private  SkuInfoEntity info;

   //是否有货
   private boolean hasStock = true;

    //sku图片信息 pms_spu_images
    private List<SkuImagesEntity> images;
    //spu 销售属性信息
    private List<SpuSaleAttrVo> spuSaleAttrVos;

    //spu介绍信息  pms_spu_info_desc
    private  SpuInfoDescEntity desc;
    //spu规格参数信息
    private List<SpuAttrGroupInfo> groupInfo;

    //秒杀优惠信息
    private SeckillSkuInfoVo seckillSkuInfoVo;


    @Data
    public static class SpuSaleAttrVo{
        private  String attrId;
        private  String attrName;
        private  List<SpuSaleAttrValue> attrValues;
    }

    @Data
    public static class SpuSaleAttrValue {
        private String attrValue;
        private String skuIds;
    }

    @Data
    public static class SpuAttrGroupInfo{
        private  String attrGroupName;
        private List<SpuAttrInfo> attrGroupValues;
    }

    @Data
    public static class SpuAttrInfo{
        private  String attrName;
        private  String attrValue;
    }



}